<template>
  <div>新闻
      <!-- <iframe src="https://m.china.com.cn/appshare/doc_1_34_2079026.html" frameborder="0" width="100%" height="100%"></iframe> -->
  </div>
</template>

<script>
import news from "@/api/news.js";
import axios from "axios";

export default {
data() {
    return {
        iframe:'https://m.china.com.cn/appshare/doc_1_34_2079026.html'
    }
},
  mounted() {
    news.getNews().then((res) => {
      console.log(res);
    });
    // news.getDetail().then(res=>{
    //     console.log('detail---',res);
    // })

    axios({
      headers: {
        "Content-Type": "text/html"
      },
     
      method: "get",
      url: "https://m.china.com.cn/appshare/doc_1_34_2079026.html",
    }).then(res=>{
        console.log(res);
        this.iframe=res.data;
    })
  },
};
</script>

<style lang="scss" scoped>
</style>